
require('reset.css');
require('./style.css');

const NAME = 'app'

require('angular')
    .module(NAME, [
        require(__MAIN__ + '/router.ts').name,
        require(__VIEWS__ + '/index/index.ts').name,
        require(__VIEWS__ + '/infomation/index.ts').name,
        require(__VIEWS__ + '/occupation/index.ts').name,
        require(__VIEWS__ + '/datas/index.ts').name,
        require(__VIEWS__ + '/pictures/index.ts').name,
        require(__COMPONENTS__ + '/scroller/index.ts').name,
    ])
    .directive(NAME, function () {
        return {
            template: `<div id="scroller" ${require(__COMPONENTS__ + '/scroller/index.ts').name} ng-click="ngClick()">
                <div ui-view="${require(__VIEWS__ + '/index/index.ts').name}" class="page"></div>
                <div ui-view="${require(__VIEWS__ + '/infomation/index.ts').name}" class="page"></div>
                <div ui-view="${require(__VIEWS__ + '/occupation/index.ts').name}" class="page"></div>
                <div ui-view="${require(__VIEWS__ + '/datas/index.ts').name}" class="page"></div>
                <div ui-view="${require(__VIEWS__ + '/pictures/index.ts').name}" class="page"></div>
            </div>`
        }
    })